package com.fitness.front.modal.member.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fitness.front.modal.AbstractBaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

@Data
@TableName("t_member")
@EqualsAndHashCode
public class Member extends AbstractBaseEntity implements Serializable {
    private static final long serialVersionUID = 1L;

    private String mobile;

    private String username;

    private String realName;

    private String password;

    private String salt;

    //会员性别,F为男，M为女")
    private String gender;

    private Integer age;

    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date birthday;

    //会员身高
    private Integer height;

    //会员体重
    private Integer weight;

    private String avatar;
}
